<?php

use yii\helpers\Html;
use app\common\widgets\MyDetailView;

/* @var $this yii\web\View */
/* @var $model app\models\Course */

$this->title = $model->coursename;
$this->params['breadcrumbs'][] = ['label' => '课程', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="course-view">
<div class="bg-info" style="width: 100%;height: 80px;border:1px solid #ddd;border-radius: 3px;">
        <p class="text-primary"style=" color: #0066cc;font-size: 20px;margin-left: 10px;">课程一览</p>
        <div style="float: right;">
        <?= Html::a('更新', ['update', 'id' => $model->id], ['class' => 'btn btn-info','style' => 'margin-right:5px']) ?>
            <?= Html::a('新建', ['create'], ['class' => 'btn btn-info','style' => 'margin-right:5px']) ?>
         <?= Html::a('返回', ['index'], ['class' => 'btn btn-info','style' => 'margin-right:10px']) ?>
        </div>
    </div>
    <?= MyDetailView::widget([
        'model' => $model,
        'attributes' => [
           // 'id',
            'coursename',
            'courseno',
            'creadit',
            'grade',
            'allperiod',
            'profession',
            'classtype1',
            'classtype2',
            'classes',
            'checktype',
            'studentnum',
            'teachperiod',
            'testperiod',
            'machineperiod',
            'otherperiod',
            'weekperiod',
            'teachweek',
            'examineweek',
            'teacher',
            'siterequirement',
            'arrangerequirement',
            'mark',
            'updatetime',
            'isfinish',
            'addman',
            'addmanid',
            'addtime',
            'mon',
            'tue',
            'wed',
            'thu',
            'fri',
//            'regmatch:ntext',
            'term',
        ],
    ]) ?>

</div>
